Single Batch Overlap (SBO): Overlaping of Down GEMM with Combine Send#483
Merged
wangfakang merged 9 commits intodeepseek-ai:antgroup-optfrom Nov 21, 2025
Merged
Conversation
Co-authored-by: Sulfur6 <huangchun50@gmail.com> Co-authored-by: AniZpZ <aniz1905@gmail.com>
wangfakang
reviewed
Nov 6, 2025
Co-authored-by: sky <fakangwang@gmail.com>
Co-authored-by: sky <fakangwang@gmail.com>
qhsc
reviewed
Nov 18, 2025
| for (int token_idx = offset + sub_warp_id; token_idx < offset + num_tokens_to_send; token_idx += num_warps_per_group) { | ||
| if (overlap or (not is_rank_masked<true>(mask_buffer_ptr, dst_rank))) { | ||
| auto token_start_idx = overlap ? local_expert_signal_idx * block_m : offset; | ||
| auto token_end_idx = overlap ? min((local_expert_signal_idx + 1) * block_m, num_tokens_per_expert) : (offset + num_tokens_to_send); |
There was a problem hiding this comment.
Hi~ I have tried this great feature, and foud that combine_send was slower than the non-overlap situation, maybe block_m is too big for one SM in each itertions? I
Author
There was a problem hiding this comment.
You may consider increasing num_sms from the default value of 3 to 4-6. When block_m is set to 64, given that num_warps is 32: if num_token <= 32, one SM sends a single round; if 32 < num_token <= 64, one SM needs to send two rounds. Two rounds may take slightly longer than the origin combined send, but you can increase parallelism by raising num_sms.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The DeepEP implementation for SBO (DeepEP #390) will be merged into the antgroup-opt branch.